package io.renren.modules.member.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * 
 * @author steakliu
 * @email 2319492349@qq.com
 * @date 2021-01-27 20:40:35
 */
@Data
@TableName("t_store_member_rule")
public class TStoreMemberRuleEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 租户
	 */
	private Long sellerId;
	/**
	 * 会员类型
	 */
	private Long memberTypeId;
	/**
	 * 兑换金额(消费多少金额兑换多少积分)
	 */
	private Double exchangeAmount;
	/**
	 * 兑换积分(消费多少金额兑换多少积分)
	 */
	private Long exchangeIntegral;
	/**
	 * 积分清零状态(当为1的时候清零积分)
	 */
	private Integer integralClearRuleStatus;
	/**
	 * 积分清零规则
	 */
	private String integralClearRule;
	/**
	 * 积分清零日期
	 */
	private Date integralClearDate;
	/**
	 * 最低限额
	 */
	private Double minQuota;
	/**
	 * 会员升级规则(1按历史积分升级2按当前积分)
	 */
	private Integer upgradeRule;
	/**
	 * 开始积分(积分区间可打折)
	 */
	private Long startIntegral;
	/**
	 * 结束积分(积分区间可打折)
	 */
	private Long endIntegral;

	private Double discount;

	@TableField(exist = false)
	private String memberTypeName;

	@TableField(exist = false)
	private List<Long> memberTypeList;

}
